package summer_vacation.xuqianlan;
import java.util.Scanner;
/**
 * Created by lenovo on 2015/9/2.
 */
public class Test_13 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int a=input.nextInt();
        for(int i=1;i<=a;i++){
            if(a%i==0){
                System.out.println(+i);
            }
        }
    }
}
